<template>
  <div v-text="msg" class="dv1"> </div>
  <div v-html="msg1" class="dv2"> </div>
</template>
<script setup>
const msg="<span>这是v-text指令的文容本的内</span>";
const msg1="<i>这是v-html指令的内容</i>";
</script>
<style scoped>
.dv1{
    color: red;
}
.dv2{
    color: brown;
}
</style>